home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{E22CCE1C-B7AC-11D1-A1C2-444553540000}#13.3#0"; "ChadoSpellText.ocx"
- Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
- Begin VB.Form Form1
- Caption = "SpellText Sample Program"
- ClientHeight = 7755
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 5985
- BeginProperty Font
- Name = "Arial"
- Size = 11.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Icon = "Form1.frx":0000
- LinkTopic = "Form1"
- ScaleHeight = 7755
- ScaleWidth = 5985
- StartUpPosition = 2 'CenterScreen
- Begin MSComDlg.CommonDialog cmdlg
- Left = 5280
- Top = 240
- _ExtentX = 847
- _ExtentY = 847
- _Version = 393216
- End
- Begin ChadoSpellText.SpellText SpellText1
- Height = 1815
- Left = 480
- TabIndex = 2
- Top = 840
- Width = 3915
- _ExtentX = 6906
- _ExtentY = 3201
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- FontName = "MS Serif"
- FontSize = 9.75
- Text = ""
- CustomDictionaryFName= "\CHCUSTOM.CUD"
- CheckOnFocusLoss= 0 'False
- MSForeColor = 255
- MSBackColor = 16777215
- SquiggleColor = 255
- End
- Begin VB.CommandButton butFont
- Caption = "Change Font"
- Height = 375
- Left = 2400
- TabIndex = 1
- Top = 60
- Width = 1935
- End
- Begin VB.CommandButton butMain
- Caption = "Switch Style"
- Height = 375
- Left = 240
- TabIndex = 0
- Top = 60
- Width = 1935
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub butFont_Click()
- cmdlg.FontBold = SpellText1.FontBold
- cmdlg.FontItalic = SpellText1.FontItalic
- cmdlg.FontName = SpellText1.FontName
- cmdlg.FontSize = SpellText1.FontSize
- cmdlg.FontStrikethru = SpellText1.FontStrikethru
- cmdlg.FontUnderline = SpellText1.FontUnderline
- cmdlg.Flags = cdlCFBoth
- cmdlg.ShowFont
- SpellText1.FontBold = cmdlg.FontBold
- SpellText1.FontItalic = cmdlg.FontItalic
- SpellText1.FontName = cmdlg.FontName
- SpellText1.FontSize = cmdlg.FontSize
- SpellText1.FontStrikethru = cmdlg.FontStrikethru
- SpellText1.FontUnderline = cmdlg.FontUnderline
- End Sub
- Private Sub butMain_Click()
- If SpellText1.Style = MultiLine Then
- SpellText1.Style = SingleLine
- Else
- SpellText1.Style = MultiLine
- End If
- End Sub
- Private Sub Form_Resize()
- butMain.Move 0, 0
- butFont.Move butMain.Width + 100, 0
- If Me.ScaleHeight > butMain.Height Then SpellText1.Move 0, butMain.Height, Me.ScaleWidth, Me.ScaleHeight - butMain.Height
- End Sub
-